'use strict';

const { factory } = require('factory-girl');

module.exports = app => {
  app.factory = factory;

  factory.define('user', app.model.User, { name: 'hello', password: '1234' });
  factory.define('code', app.model.Code, {
    user: 1,
    client_id: '0',
    redirect_uri: 'https://augenblick.zcxsythenew.xyz',
    scope: '[ \'user_info\' ]',
    valid: true,
  });
  factory.define('token', app.model.Token, {
    token: '0',
    refresh: '0',
    code: 0,
    valid: true,
  });
};
